package com.tywj.lib.net.retrofit.callback

import okhttp3.ResponseBody
import retrofit2.Response

/**
 * <pre>
 *     author : June Yang
 *     time   : 2020/5/8
 *     desc   : head请求回调（专用于Head请求，请求结果为请求响应的header）
 *     version: 1.0.0
 * </pre>
 */
abstract class HeadRequestCallback : BaseCallback<Map<String, MutableList<String>>>() {
    override fun convertResponse(response: Response<ResponseBody>): Map<String, MutableList<String>>? {
        return response.raw().headers().toMultimap()
    }
}